@extends('admin.layout.layout', ['row' => @$page])

@section('title', @$page['title'])

@section('contain')
    <div class="container" style="padding-bottom: 20px; padding-top: 20px;">
        <div class="row" style="text-align: center;margin-bottom: 20px;">
            <div class="col"><h2>{{ $title }}{{ !empty($abbr) ? '(' . $abbr . ')' : ''}}</h2></div>
            <div class="col-sm-1" style="float: right;">
                <a href="/admin/stat/roll"><button class="btn btn-primary">返回</button></a>
            </div>
        </div>
        <div class="row">
            <table class="table table-bordered">
                <thead>
                <tr class="active" style="background-color: rgb(248, 248, 248);">
                    <th>名称</th>
                    <th>数量</th>
                </tr>
                </thead>
                <tbody>
                @foreach($data as $key=> $value)
                    <tr>
                        <td>{{ $key ?? '' }}</td>
                        <td>{{ $value ? round($value, 2) : '' }}</td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
@endsection
@endsection